home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / msoftapp.zip / VIEWER.MAK < prev    next >
Text File  |  1993-06-01  |  1KB  |  48 lines

  1. # Makefile : Builds the viewer application
  2. #
  3. # Usage:     NMAKE option (build Multipad)
  4. #    or:     NMAKE clean  (erase all compiled files)
  5. #
  6. # option:    DEBUG=[0|1]  (DEBUG not defined is equivalent to DEBUG=0)
  7. #
  8.  
  9. OBJS=viewer.obj bounce.obj hello.obj filewin.obj linefile.obj bbutton.obj
  10. HEADERS=viewer.h bounce.h hello.h filewin.h bbutton.h resource.h common.h mydlgs.h
  11.  
  12. PCH=viewer.h
  13. # program uses Win31 #defines, but not any Win31 library entries (i.e. rc -30)
  14. CPPFLAGS= /AM /W3 /Zp /GA /GEs /G2 /Yu$(PCH) 
  15. LINKFLAGS=/NOD /ONERROR:NOEXE
  16.  
  17. !if "$(DEBUG)"=="1"
  18. CPPFLAGS=/D_DEBUG $(CPPFLAGS) /Od /Zi /f
  19. LINKFLAGS=$(LINKFLAGS) /COD
  20. LIBS=mafxcwd libw commdlg mlibcew shell
  21. !else
  22. CPPFLAGS=$(CPPFLAGS) /Oselg /Gs
  23. LINKFLAGS=$(LINKFLAGS)
  24. LIBS=mafxcw libw commdlg mlibcew shell
  25. !endif
  26.  
  27. viewer.exe: viewer.res viewer.def $(OBJS)
  28.     link $(LINKFLAGS) @<<
  29. $(OBJS),
  30. viewer,
  31. NUL,
  32. $(LIBS),
  33. viewer.def;
  34. <<
  35.     rc -30 /k /t viewer.res
  36.  
  37. viewer.obj : viewer.cpp $(HEADERS)
  38.     $(CC) $(CPPFLAGS) /Yc$(PCH) /c viewer.cpp
  39.  
  40. *.obj:  viewer.h $(PCH)
  41. viewer.res:  *.ico viewer.h
  42.  
  43. clean:
  44.     -erase viewer.exe
  45.     -erase viewer.res
  46.     -erase viewer.pch
  47.     -erase *.obj
  48.